#include<stdio.h>
struct stu{
	int num;
	char *name;
	float score[3];
	float average;
}a[3];
int main(void){
	int i,j;
	float sum=0;
	char b[99];
	for(i=0;i<3;i++){
	printf("\n请输入学号 姓名 数学 语文 物理成绩\n");
	scanf("%d",&a[i].num);
	scanf("%s",b);
	a[i].name=b;
	for(j=0,sum=0;j<3;j++){
		scanf("%f",&a[i].score[j]);
		sum+=a[i].score[j];
	}
	a[i].average=sum/3;
	printf("学号\t姓名\t数学\t语文\t物理\t平均分\n");
	printf("%d\t%s\t%.0f\t%.0f\t%.0f\t%.0f\t",a[i].num,a[i].name,a[i].score[0],a[i].score[1],a[i].score[2],a[i].average);
}
}